﻿using System;

namespace SX.Entity
{
	/// <summary>
    /// 用户表 用户表
    /// </summary>
	[Serializable]
	public partial class Users
	{
		/// <summary>
        /// 用户Id
        /// </summary>
		public long user_Id { get; set; }
		
		/// <summary>
        /// 用户账号
        /// </summary>
		public String username { get; set; }
		
		/// <summary>
        /// 密码
        /// </summary>
		public String userpwd { get; set; }
		
		/// <summary>
        /// 真是姓名
        /// </summary>
		public String realname { get; set; }
		
		/// <summary>
        /// 昵称
        /// </summary>
		public String nickname { get; set; }
		
		/// <summary>
        /// 性别 性别 0 未知  1 男 2 女
        /// </summary>
		public int sex { get; set; }
		
		/// <summary>
        /// 密码加密的盐
        /// </summary>
		public String salt { get; set; }
		
		/// <summary>
        /// qq
        /// </summary>
		public String qq { get; set; }
		
		/// <summary>
        /// 微信
        /// </summary>
		public String weixin { get; set; }
		
		/// <summary>
        /// 邮箱
        /// </summary>
		public String email { get; set; }
		
		/// <summary>
        /// 电话号码
        /// </summary>
		public String phone { get; set; }
		
		/// <summary>
        /// 最后登录时间
        /// </summary>
		public DateTime last_login_time { get; set; }
		
		/// <summary>
        /// 最后登录ip
        /// </summary>
		public String last_login_ip { get; set; }
		
		/// <summary>
        /// 是否超级管理员 是否超级管理员 0 否 1 是
        /// </summary>
		public int is_sup { get; set; }
		
		/// <summary>
        /// 用户类型 0 工厂用户 1 运营商用户 2  加盟商用户
        /// </summary>
		public int user_type { get; set; }
		
		/// <summary>
        /// 身份证号码
        /// </summary>
		public String idcard { get; set; }
		
		/// <summary>
        /// 组织Id
        /// </summary>
		public long org_id { get; set; }
		
		/// <summary>
        /// 创建人Id
        /// </summary>
		public long create_id { get; set; }
		
		/// <summary>
        /// 创建时间
        /// </summary>
		public DateTime create_time { get; set; }
		
		/// <summary>
        /// 修改人Id
        /// </summary>
		public long update_id { get; set; }
		
		/// <summary>
        /// 修改时间
        /// </summary>
		public DateTime update_time { get; set; }
		
		/// <summary>
        /// 用户状态 0 可用 1 关停
        /// </summary>
		public int user_status { get; set; }
		
	    public string refresh_token_hash { get; set; }

    }
}